<?php
$this->title = '积分详情';
?>

<!-- <header class="header"><a href="#" onClick='history.go(-1)'><i class="back-icon"></i></a>积分</header> -->
<div id="pointer_con">
    <div class="pointer_title">M币明细列表</div>
    <table class="pointer_table">
        <thead class="pointer_thead">
        <tr>
            <td align="left" class="list_name">日期</td>
            <td align="left">交易记录</td>
            <td align="right">M币收支</td>
            <td align="right">有效期</td>
        </tr>
        </thead>
        <tbody class="pointer_tbody">
        <?php if (isset($points)){?>
            <?php foreach ($points as $k => $v){?>
                <tr>
                    <td align="left"><?= $v['date'] ?></td>
                    <td>￥<?= $v['monetary']?> </td>
                    <td class="pointer_number" align="center"><?= $v['points'] > 0 ?  "+".$v['points'] : $v['points']?></td>
                    <td align="right"><?= $v['points_expirydate'] ?></td>
                </tr>
            <?php } ?>
        <?php } ?>
        </tbody>
    </table>
</div>
